home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Franz PD / Franz PD Disk #067 (1990-04)(Amiga User Group Deutschland e.V.).zip / Franz PD Disk #067 (1990-04)(Amiga User Group Deutschland e.V.).adf / Include / TimerUtils.i < prev    next >
Text File  |  1989-07-02  |  955b  |  33 lines

  1. {
  2.     TimerUtils.i
  3.  
  4.     This file declares CreateTimer, WaitTimer, and DeleteTimer.
  5.     They allow you to use the timer.device with relatively little
  6.     overhead.  Note that, unlike the examples from the ROM Kernel
  7.     Manual, these routines use the VBlank unit.  Therefore they
  8.     require much less overhead, but you should not use these routines
  9.     for times of less than half a second.
  10.     The source for these routines is in Runtime/Extras, and the
  11.     object code is in PCQ.lib
  12. }
  13.  
  14. {$I "Include/Ports.i"}
  15. {$I "Include/TimerDevice.i"}
  16.  
  17. Function CreateTimer : TimerRequestPtr;
  18.     External;
  19.  
  20. Function SetTimer(WhichTimer : TimerRequestPtr;
  21.             Seconds, Microseconds : Integer) : MsgPortPtr;
  22.     External;
  23.  
  24. Procedure WaitTimer(WhichTimer : TimerRequestPtr;
  25.             Seconds, Microseconds : Integer);
  26.     External;
  27.  
  28. Procedure GetSysTime(WhichTimer : TimerRequestPtr; VAR TV : TimeVal);
  29.     External;
  30.  
  31. Procedure DeleteTimer(WhichTimer : TimerRequestPtr);
  32.     External;
  33.